package hdfsexample;

import java.io.IOException;
import java.io.PrintStream;
import java.net.URI;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.*;




public class MyPathFilter implements PathFilter{
	String reg = null;
	MyPathFilter(String reg) {
		this.reg = reg;
	}
	
	public boolean accept(Path path) {
		if (!(path.toString().matches(reg))) {
			return true;
		} else {
			return false;
		}
	}

}
